<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=\, initial-scale=1.0">
    <title>Document</title>
    <style>
        table {
            width: 500px;
            text-align: center;
            border-collapse: collapse;
        }

        table thead tr:first-child {
            background: rgb(60, 151, 112);
            color: #fff;
            line-height: 40px;
        }

        table tbody tr {
            line-height: 30px;
            font-size: 15px;
        }

        /* 实现隔行换色 */
        /* 奇数 2n-1 2n+1 odd */
        table tbody tr:nth-child(odd) {
            background: #D5E39B;
        }

        /* 偶数 2n even */
        table tbody tr:nth-child(2n) {
            background: rgb(234, 241, 205);
        }
    </style>
</head>

<body>
    <table>
        <thead>
            <tr>
                <th>产品名称</th>
                <th>规格型号</th>
                <th>单位</th>
                <th>数量</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>直向砂轮机</td>
                <td>S1S-DS-150</td>
                <td> 台</td>
                <td>3</td>
            </tr>
            <tr>
                <td>直向砂轮机</td>
                <td>S1S-DS-150</td>
                <td> 台</td>
                <td>3</td>
            </tr>
            <tr>
                <td>直向砂轮机</td>
                <td>S1S-DS-150</td>
                <td> 台</td>
                <td>3</td>
            </tr>
            <tr>
                <td>直向砂轮机</td>
                <td>S1S-DS-150</td>
                <td> 台</td>
                <td>3</td>
            </tr>
            <tr>
                <td>直向砂轮机</td>
                <td>S1S-DS-150</td>
                <td> 台</td>
                <td>3</td>
            </tr>
            <tr>
                <td>直向砂轮机</td>
                <td>S1S-DS-150</td>
                <td> 台</td>
                <td>3</td>
            </tr>
            <tr>
                <td>直向砂轮机</td>
                <td>S1S-DS-150</td>
                <td> 台</td>
                <td>3</td>
            </tr>
            <tr>
                <td>直向砂轮机</td>
                <td>S1S-DS-150</td>
                <td> 台</td>
                <td>3</td>
            </tr>
        </tbody>
    </table>
</body>

</html>